import request from '@/utils/request'
import qs from 'qs'

export function queryTask (id) {
  return request({
    url: '/queryTask/',
    method: 'post',
    data: qs.stringify({ taskid: id }),
  })
}

export function upload (formData) {
  return request({
    url: '/upload/',
    method: 'post',
    data: formData,
  })
}

export function generateLocalList () {
  return request({
    url: '/generateLocalList/',
    method: 'post'
  })
}

export function adminGeneratePredictModel (config) {
  return request({
    url: '/admin_generatePredictModel/',
    method: 'post',
    data: qs.stringify(config)
  })
}
